<extend name="Layout:layout" />
<block name="body_main">
    <div class="block box">
        <div class="blank"></div>
        <div id="ur_here">
            当前位置: <a href="{:U('Index/index')}">首页</a> <code>&gt;</code> 用户中心 
        </div>
    </div>
    <div class="blank"></div>
    <div class="block clearfix">
        <div class="AreaL">
            <div class="box">
                <div class="box_1">
                    <div class="userCenterBox">
                        <div class="userMenu">
                            <a href="{:U('MyHome/index')}"><img src="__THEME__images/u1.gif"> 欢迎页</a>
                            <a href="{:U('MyProfile/profile_edit')}"><img src="__THEME__images/u2.gif"> 用户信息</a>
                            <a href="{:U('MyOrder/index')}"><img src="__THEME__images/u3.gif"> 我的订单</a>
                            <a href="{:U('MyConsignee/index')}"><img src="__THEME__images/u4.gif"> 收货地址</a>
                            <a href="{:U('MyFavorite/index')}" class="curs"><img src="__THEME__images/u5.gif"> 我的收藏</a>
                            <a href="{:U('Passport/logout')}" style="background:none; text-align:right; margin-right:10px;"><img src="__THEME__images/bnt_sign.gif"></a>
                        </div>      
                    </div>
                </div>
            </div>
        </div>
        <div class="AreaR">
            <div class="box">
                <div class="box_1">
                    <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
                        <h5><span>我的收藏</span></h5>
                        <div class="blank"></div>
                        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                            <tr align="center">
                                <th width="35%" bgcolor="#ffffff">商品名称</th>
                                <th width="30%" bgcolor="#ffffff">价格</th>
                                <th width="35%" bgcolor="#ffffff">操作</th>
                            </tr>
                            <foreach name="list" item="vo">                                
                                <tr>
                                    <td bgcolor="#ffffff"><a href="{:U('Product/product','id='.$vo['id'])}" class="f6" target="_blank">{$vo.title}</a></td>
                                    <td bgcolor="#ffffff">本店售价：<span class="goods-price">￥{$vo.price}元</span>
                                    </td>
                                    <td align="center" bgcolor="#ffffff">
                                        <a class="lnk-delete-favorite" href="{:U('delete_favorite','id='.$vo['id'])}" class="f6">删除</a>
                                    </td>
                                </tr>
                            </foreach>
                        </table>
                        <div id="pager" class="pagebar">
                            {$pager}
                        </div>
                        <div class="blank5"></div>

                        <script language="JavaScript">
                            jQuery('.lnk-delete-favorite').click(function () {
                                if (!confirm('您确定要从收藏夹中删除选定的商品吗？')) {
                                    return false;
                                }
                                jQuery.get(jQuery(this).attr('href'), function () {
                                    location.reload();
                                })
                            })
                        </script>
                        <div class="blank5"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>